package maa.action;

public class ActionResult {
    private String result;
    private boolean isRedirected;

    public ActionResult(String result, boolean isRedirected) {

        this.result = result;
        this.isRedirected = isRedirected;
    }

    public ActionResult(String result) {
        this(result, false);
    }

    public ActionResult() {
        this("login");
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public boolean isRedirected() {
        return isRedirected;
    }

    public void setRedirected(boolean isRedirected) {
        this.isRedirected = isRedirected;
    }
}
